<?php

namespace App\Http\Model;


class Article extends Base
{
    protected $hidden = [
        'read_count', 'is_active', 'updated_at'
    ];

    public function getCreatedAtAttribute($date)
    {
        return \Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $date)->timestamp;
    }
}
